home *** CD-ROM | disk | FTP | other *** search
- /*
- tutheade.h
- external decls
- 10/30/94
- SCP
- Adapted from tutprog4.pas, translated into C.
- header file for the Turbo C version of the wormie program.
- */
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <dos.h>
- #include <math.h>
- #include <conio.h>
- #include <graphics.h>
- #include <bios.h>
- #include <string.h>
-
- #define VGA 0xa000
- #define PI (float) 3.14159
-
- struct Point
- {
- float x;
- float y;
- float z;
- };
-
- extern char Virtual[(unsigned)64000]; // Virtual Screen.
- extern char Virtual2[(unsigned)64000]; // Virtual Screen.
- extern char far* VirtPtr;
- extern char far* VirtPtr2;
- extern unsigned int Vaddr;
- extern unsigned int Vaddr2;
- extern char Pall[256][3];
- extern char Pall2[256][3];
-
- void SetMCGA();
- void SetText();
- void WaitRetrace();
- void GetPal(char ColorNo, char* R, char* G, char* B);
- void Pal(char ColorNo, char R, char G, char B);
- void PutPixel(int X, int Y, char Color, int Where);
- void Line(int x1, int y1, int x2, int y2, unsigned char Color);
- void Line2(int x1, int y1, int x2, int y2, unsigned char Color, int where);
- void Funny_Line(int x1, int y1, int x2, int y2, int Where);
- void PalPlay();
- void rotatepal(char locpal[][3], int start, int end);
- void GrabPallette();
- void Blackout();
- void FadeUp();
- void FadeDown();
- void RestorePallette();
- void Cls(char Color, int Where);
- void Flip();
- void Flip2(int Source, int Dest);
- // int random(int x);
- float rad(float theta);
- int round(float x);
- void SetUpVirtual();
- void Hline(int x1, int x2, int y, char col, int where);
- void PutPixel2(int x, int y, char col, int where);
-